<layout name="../../../Resource/master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">添加商品品牌</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">添加商品品牌</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">添加商品品牌</header>
            <div class="panel-body">
                <form action="" method='post' enctype="multipart/form-data">
                    <fieldset>
                        <legend>添加商品品牌</legend>
                        <table class="table table-bordered table-hover">
                            <tr class="info">
                                <td>品牌名称</td>
                                <td colspan="2">
                                    <input type="text" value="{$oldBrand.bname}" name='bname'/>
                                </td>
                            </tr>
                            <tr class="info">
                                <td>权重排序</td>
                                <td colspan="2">
                                    <input type="text" value="{$oldBrand.bsort}" name='bsort'/>
                                </td>
                            </tr>
                            <tr class="info">
                                <td>品牌LOGO</td>
                                <td>
                                    <input type="file"  name='logo'/>
                                    <input type="text" value="{$oldBrand.logo}" name='logo' id='logo'/>
                                </td>
                                <td>
                                    <div id='logo-wrap' style='display:none'></div>
                                </td>
                            </tr>
                            <tr class="info">
                                <td>是否热门</td>
                                <td colspan="2">
                                    否<input type="radio" name='hot' value='0' <if condition="$oldBrand.hot == 0 ">checked</if>/>
                                    是<input type="radio" name='hot' value='1'  <if condition="$oldBrand.hot == 1 ">checked</if>/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan='3' align='center'>
                                </td>
                            </tr>
                        </table>
                        <input type="submit" class="btn btn-primary" value="添加品牌" />
                    </fieldset>
                </form>

            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _) {
    }
</script>
